#ifndef __GS_PACKET_H__
#define __GS_PACKET_H__

#define MAGIC 0x00000001

typedef struct Packet {
    int magic;
    int id;
    int command;
    int length;
    char data[];
} Packet;

#define COMMAND_MESSAGE    0x01
#define COMMAND_JOIN_IN    0x02
#define COMMAND_LEAVE      0x03
#define COMMAND_DO_ACTION  0x04

#endif
